package com.demo.auth.dao.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.demo.auth.dao.domain.AuthCodeUserInterface;
import com.demo.auth.dao.service.AuthCodeUserInterfaceService;
import com.demo.auth.dao.mapper.AuthCodeUserInterfaceMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author ps
* @description 针对表【auth_code_user_interface(授权用户访问接口)】的数据库操作Service实现
* @createDate 2022-10-09 13:41:42
*/
@Service
public class AuthCodeUserInterfaceServiceImpl extends ServiceImpl<AuthCodeUserInterfaceMapper, AuthCodeUserInterface>
    implements AuthCodeUserInterfaceService{

    @Override
    public List<AuthCodeUserInterface> queryByUserId(Long userId) {
        return super.lambdaQuery().eq(AuthCodeUserInterface::getUserId, userId).list();
    }
}




